<template>
  <div class="notFount">
    <img class="pic"
         width="100%"
         height="100%"
         src="../../assets/imgs/notFount.png"
         alt="404">
    <div class="buttons">
      <button @click="handleBack">返回上一级</button>
      <button @click="handleIndex">返回首页</button>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
    }
  },

  components: {},

  computed: {},

  methods: {
    /* 返回上一页 */
    handleBack () {
      this.$router.go(-1);
    },
    /* 返回首页 */
    handleIndex () {
      this.$router.replace('/');
    }
  }
}

</script>
<style lang='css' scoped>
.notFount {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}
.pic {
  width: 420px;
  height: 420px;
}
.buttons {
  width: 420px;
  display: flex;
  justify-content: space-between;
}
.buttons button {
  margin-top: 20px;
  padding: 0 30px;
  line-height: 62px;
  background: transparent;
  border: 1px solid #3073f4;
  border-radius: 10px;
  color: #3073f4;
  font-size: 24px;
}
</style>